package com.mt.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Wang
 * @since 2020-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mt_film_comment")
@ApiModel(value="FilmComment对象", description="")
public class FilmComment implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "自增id")
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    private Integer filmId;

    private String userId;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "电影评论(限制长度200字)")
    private String content;

    @ApiModelProperty(value = "电影评分")
    private Integer score;

    @ApiModelProperty(value = "点赞数量")
    private Integer likeNum;

    @ApiModelProperty(value = "yyyy-mm-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date commentDate;

    @ApiModelProperty(value = "入库时间")
    private Date insertTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Integer likeStatus;
}
